{extend name="admin@public/base" /}
{block name="styles"}
<link rel="stylesheet" href="__PUBLIC__/bootstrap-select/css/bootstrap-select.min.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/css/validationEngine.jquery.css">
<script type="text/javascript" src="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/js/jquery.validationEngine-zh_CN.js"></script>
<script type="text/javascript" src="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/js/jquery.validationEngine.min.js"></script>
{/block}
{block name="main-content"}
<div class="page-content">
    <div class="page-header">
        <h1>
            您当前操作
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                添加职务
            </small>
        </h1>
    </div>

    <div class="row">
        <div class="col-xs-12">
            <form class="form-horizontal ajaxForm" method="post" action="{:url('admin/Position/doAdd')}">
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="name"> <span class="red">*</span>职务名称：  </label>
                    <div class="col-sm-10">
                        <input type="text" name="name" id="name" class="col-xs-10 col-sm-5 validate[required]"/>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right"><span class="red">*</span>状态：</label>
                    <div class="col-sm-10">
                        <div class="radio">
                            <label>
                                <input name="isvalid" class="ace"  type="radio" value="1" checked/>
                                <span class="lbl"> 是 </span>
                            </label>
                            <label>
                                <input name="isvalid" class="ace"  type="radio" value="0"/>
                                <span class="lbl"> 否 </span>
                            </label>
                        </div>
                    </div>
                </div>                
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            保存
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="ace-icon fa fa-undo bigger-110"></i>
                            重置
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="scripts"}
<script src="__PUBLIC__/bootstrap-select/js/bootstrap-select.min.js"></script>
<script>
    $('.form-horizontal').validationEngine('attach',{
            promptPosition: 'bottomLeft',
            addPromptClass: 'formError-white',
            showOneMessage: true
        });

</script>
{/block}